Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yet more efficient encoding of sum types #1346

Conversation

plokhotnyuk
Copy link
Contributor

Tested with Scala 3 and JDK-21 on Intel® Core™ i7-11800H:

Before

Benchmark              (size)   Mode  Cnt        Score       Error  Units
ADTWriting.zioJson        N/A  thrpt    5  2872697.652 ± 10415.473  ops/s
GeoJSONWriting.zioJson    N/A  thrpt    5    16845.907 ±   143.893  ops/s

After

Benchmark              (size)   Mode  Cnt        Score       Error  Units
ADTWriting.zioJson        N/A  thrpt    5  3138204.878 ±  5186.234  ops/s
GeoJSONWriting.zioJson    N/A  thrpt    5    21399.899 ±    88.420  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 27, 2025 13:48
@plokhotnyuk plokhotnyuk merged commit 3877ea7 into zio:series/2.x Feb 27, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-decoding-of-java-time-types branch February 27, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant